<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<style>
		div{
			width:500px;
			height:300px;
			border:1px solid red;
		}
	</style>
</head>
<body>
<input type="text">
<div></div>
</body>
<script>
	// 1 0
	const inp = document.querySelector("input");
	const div = document.querySelector("div");
	inp.oninput = function(){
		div.innerHTML = this.value;
	}
	
	
</script>
</html>